package com.learn.eduorderboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 支付订单状态日志表
 * </p>
 *
 * @author m
 * @since 2022-04-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="PayOrderRecord对象", description="支付订单状态日志表")
public class PayOrderRecord implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "ID")
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "订单号")
    private String orderNo;

    @ApiModelProperty(value = "操作类型：CREATE|PAY|REFUND...")
    private String type;

    @ApiModelProperty(value = "原订单状态")
    private String fromStatus;

    @ApiModelProperty(value = "新订单状态")
    private String toStatus;

    @ApiModelProperty(value = "实付金额，单位为分")
    private Integer paidAmount;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "操作人")
    private String createdBy;

    @ApiModelProperty(value = "操作时间")
    private Date createdAt;


}
